package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.IMessageCenter
import fhp.hlhj.giantfold.javaBean.MessageCenterBean
import fhp.hlhj.giantfold.module.MessageCenterModule

/**
 * Created by Administrator on 2018\2\8 0008.
 */
class MessageCenterPresenter(private val iMessageCenter: IMessageCenter) : MessageCenterModule.OnMessageCenterResp {
    private val module=MessageCenterModule()

    fun getMessge(params: HttpParams){
        module.getMessage(params,this)
    }

    override fun showLoading() {
        iMessageCenter.showLoading()
    }

    override fun onResp(t: MessageCenterBean) {
        iMessageCenter.onResp(t)
    }
}